.PHONY:all
all:mycommand otherExe

mycommand:mycommand.cpp
	g++ $^ -o $@
otherExe:otherExe.cpp
	g++ $^ -o $@
.PHONY:clean
clean:
	rm mycommand otherExe -f
